package com.bootdo.common.service;

import java.util.List;
import java.util.Map;

import com.smart.domain.GeneseqDO;

/**
 * 序列号生成器
 * 
 * @author zhouwc
 * @email zhouwenchao@smart.net.cn
 * @date 2019-01-03 08:46:58
 */
public interface GeneseqService {
	
	
	GeneseqDO get(Long id);
	
	List<GeneseqDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GeneseqDO geneseq);
	
	int update(GeneseqDO geneseq);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	Long getNextValue(String serviceCode);

	Long selectRange(String serviceCode);

	int updateRange(Long newValue, Long oldValue, String serviceCode);
	
	
}
